<?php $this->load->view('tourism/layout/header')?>
<div class="order-header am-cf">
    <a href="javascript:window.history.go(-1)" class="am-header-icon">
        <i class="iconfont icon-zuojiantou"></i>
    </a>
    <p>订单支付</p>
</div>
<form method="post"  action="<?php echo site_url('tourism/usertopay/orderToPay');?>">
    <input type="hidden" name="pay_bank" />
    <input type="hidden" name="order_sn" value="<?php echo $payResult->order_sn ?>" />
    <div class="circuittest-first">
        <div class="submit-all">
            <div class="pay-money">
                <p>订单编号<span><?php echo $payResult->order_sn ?></span></p>
                <p class="money">￥<span><?php echo bcadd($payResult->order_pay_total, $payResult->transport_cost, 2);?> <?php if($payResult->pay_swim>0):?>（抵<?php echo $payResult->pay_swim;?>积分）<?php endif;?></span></p>
            </div>
            <div class="submit-orders">
                <div class="but-the">收款方<span><?php echo $headTitle; ?></span></div>
                <div class="but-the">订单编号<span><?php echo $payResult->order_sn ?></span></div>
            </div>
            <div class="mode-payment">
                <p class="payment">支付方式</p>
                <ul>
                    <li class="mode-li" >
                        <a class="list-link am-cf" href="javascript:;">
                            <span class="pay-icon"></span>
                            <span class="title-main">余额支付</span>
                            <span class="check-wrapper active" data-id="99" ></span>
                        </a>
                    </li>
                    <?php if(validateWeiXin()): ?>
                        <li class="mode-li">
                            <a class="list-link am-cf" href="javascript:;">
                                <span class="pay-icon wechat"></span>
                                <span class="title-main">微信支付</span>
                                <span class="check-wrapper" data-id="201"></span>
                            </a>
                        </li>
                    <?php else : ?>
                        <li class="mode-li">
                            <a class="list-link am-cf" href="javascript:;">
                                <span class="pay-icon alipay"></span>
                                <span class="title-main">支付宝支付</span>
                                <span class="check-wrapper" data-id="1"></span>
                            </a>
                        </li>
                    <?php endif;?>
                </ul>
            </div>
            <div class="mode-sure">
                <button type="button" id="submit-order-line-pay" class="am-btn">确认支付</button>
            </div>
            <div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm">
            </div>
        </div>
    </div>
</form>
<?php $this->load->view('tourism/layout/footer')?>